package com.yunshangwoniu.core;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
public class AbstractEntity implements Serializable
{
	private static final long serialVersionUID = -3613687368472059724L;

	
	private long id;				//主键ID
	
	private long createTime;		//创建时间
	private long lastAccess;		//最后使用时间
	private String createTimeStr;	//创建时间字符串仅用来界面展示
	private String lastAccessStr;	//最后修改时间字符串仅用来展示 
	
	@Id
	@GeneratedValue
	public long getId()
	{
		return id;
	}
	public void setId(long id)
	{
		this.id = id;
	}
	public long getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(long createTime)
	{
		this.createTime = createTime;
	}
	public long getLastAccess()
	{
		return lastAccess;
	}
	public void setLastAccess(long lastAccess)
	{
		this.lastAccess = lastAccess;
	}
	public String getCreateTimeStr()
	{
		return createTimeStr;
	}
	public void setCreateTimeStr(String createTimeStr)
	{
		this.createTimeStr = createTimeStr;
	}
	public String getLastAccessStr()
	{
		return lastAccessStr;
	}
	public void setLastAccessStr(String lastAccessStr)
	{
		this.lastAccessStr = lastAccessStr;
	}
	public static long getSerialversionuid()
	{
		return serialVersionUID;
	}

	
	
}
